package com.woniuxy.order.client;



import com.woniuxy.order.entity.ResponseResult;
import com.woniuxy.order.fallback.HouseServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "house",fallback = HouseServiceFallBack.class)
public interface HouseService {
    @GetMapping("house/renthouse/{id}")
     ResponseResult findRentHouseById(@PathVariable(value = "id",required = false) int id);

    @GetMapping("house/secondhouse/{id}")
     ResponseResult findSecondHouseById(@PathVariable(value = "id",required = false) int id);
}
